PDF4Java Reference Documentation
com.o2sol.pdf4java.utilities Package / PDFEncryptor Class / decryptFile Method / decryptFile(Stream,String,Stream,boolean) Method
Stream containing the input PDF file.
Password for decrypting the input file.
Stream for storing the decrypted PDF file.
If true then the internal structure of the output PDF file is compressed.
In This Topic
    decryptFile(Stream,String,Stream,boolean) Method
    In This Topic
    Decrypts the PDF file given in input stream and saves the encrypted file to output stream.
    Syntax
    public static void decryptFile( 
       Stream input,
       java.lang.String inputPassword,
       Stream output,
       boolean enableObjectCompression
    )

    Parameters

    input
    Stream containing the input PDF file.
    inputPassword
    Password for decrypting the input file.
    output
    Stream for storing the decrypted PDF file.
    enableObjectCompression
    If true then the internal structure of the output PDF file is compressed.
    See Also